package com.shopping.pojo;

import javax.validation.constraints.Min;
import javax.validation.constraints.Size;
import java.util.Arrays;

public class Store {

    int id;
    @Size(max = 20, min = 4)
    String storeName;
    String storeAvatar;
    int level;
    @Min(0)
    int fans;

    public void setId(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getStoreAvatar() {
        return storeAvatar;
    }

    public void setStoreAvatar(String atoreAvatar) {
        this.storeAvatar = atoreAvatar;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getFans() {
        return fans;
    }

    public void setFans(int fans) {
        this.fans = fans;
    }

    @Override
    public String toString() {
        return "Store{" +
                "id=" + id +
                ", storeName='" + storeName + '\'' +
                ", storeAvatar=" + storeAvatar +
                ", level=" + level +
                ", fans=" + fans +
                '}';
    }

}
